package cn.yangliu.config.custom;

import java.util.UUID;

import org.springframework.security.core.Authentication;
import org.springframework.stereotype.Component;

/**
 * @author 杨柳
 * @date 2019-06-02
 */
@Component
public class UuidTokenGenerator implements TokenGenerator {
    @Override
    public String generate(Authentication authentication) {
        return UUID.randomUUID().toString().replace("-","");
    }
}
